/* NetworkDetail 主容器样式 */
.network-detail-container {
  padding: 24px;
  background: #f5f5f5;
  min-height: 100vh;
  position: relative;
}

.network-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px; /* 为固定的返回按钮留出空间 */
}

/* 页面头部样式 */
.detail-page-header {
  margin-bottom: 24px;
}

.back-link {
  position: fixed;
  top: 110px;
  left: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  border: 1px solid #e8e8e8;
}

.back-link:hover {
  color: #1890ff;
  background: #f0f8ff;
  border-color: #1890ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.back-link .anticon {
  margin-right: 5px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.header-info {
  flex: 1;
}

.network-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 16px;
}

.network-title-row h2 {
  margin: 0;
  margin-right: 16px;
}

.title-tags {
  display: flex;
  gap: 8px;
}

.network-description {
  color: #666;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* 信息部分样式 */
.info-sections {
  margin-bottom: 24px;
}

.info-section {
  background: white;
  border-radius: 8px;
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.section-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.section-title .anticon {
  margin-right: 8px;
  color: #1890ff;
}

.section-content {
  padding: 20px 24px;
}

/* 成员部分样式 */
.members-section {
  background: white;
  border-radius: 8px;
}

.members-alert {
  margin-bottom: 16px;
}

.members-table-container {
  margin-top: 16px;
}

.member-avatar-cell {
  display: flex;
  align-items: center;
}

.member-avatar {
  margin-right: 12px;
}

.member-info {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-weight: 500;
  color: #333;
}

.member-id {
  color: #666;
  font-size: 12px;
}

.member-actions {
  display: flex;
  gap: 8px;
}

/* 非成员提示样式 */
.non-member-prompt {
  background: white;
  border-radius: 8px;
  text-align: center;
  padding: 60px 40px;
}

.non-member-icon {
  font-size: 48px;
  color: #d9d9d9;
  margin-bottom: 16px;
}

.non-member-title {
  color: #999;
  margin: 16px 0 8px 0;
}

.non-member-description {
  color: #666;
  margin-bottom: 16px;
}

.join-network-btn {
  margin-top: 16px;
}

.network-unavailable-alert {
  margin-top: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* 加载和错误状态样式 */
.loading-view,
.error-view {
  padding: 24px;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-content,
.error-content {
  text-align: center;
  background: white;
  padding: 60px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.loading-text,
.error-text {
  margin-top: 16px;
  color: #666;
}

.error-message {
  color: #f5222d;
  margin-bottom: 20px;
  font-size: 16px;
}

.back-button {
  margin-top: 16px;
}

/* 按钮样式 */
.action-button {
  border-radius: 6px;
}

.primary-button {
  background-color: #1890ff;
}

.danger-button {
  background-color: #ff4d4f;
  border-color: #ff4d4f;
}

.manage-button {
  background-color: #52c41a;
  border-color: #52c41a;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .network-detail-container {
    padding: 16px;
  }
  
  .network-detail-content {
    padding-top: 70px; /* 移动端增加更多顶部空间 */
  }
  
  .back-link {
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .network-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .action-button {
    flex: 1;
  }
  
  .info-sections {
    margin-bottom: 16px;
  }
  
  .section-content .ant-descriptions {
    font-size: 14px;
  }
  
  .member-actions {
    flex-direction: column;
    gap: 4px;
  }
  
  .member-actions .ant-btn {
    width: 100%;
  }
}